package com.xrc.HomeWork.Animal;

public class Parent {
    private String color;
    private Integer foot=4;

    public Parent() {
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getFoot() {
        return foot;
    }

    public void setFoot(Integer foot) {
        this.foot = foot;
    }
    public void eat(String eat){

    }
    public void  work(){
        System.out.println("颜色"+getColor()+"有"+getFoot()+"条腿");
    }
}
